//格式化星期几
export function getWeek(date) {
	var week;
	if (date.getDay() == 0) week = "星期日";
	if (date.getDay() == 1) week = "星期一";
	if (date.getDay() == 2) week = "星期二";
	if (date.getDay() == 3) week = "星期三";
	if (date.getDay() == 4) week = "星期四";
	if (date.getDay() == 5) week = "星期五";
	if (date.getDay() == 6) week = "星期六";
	return week;
}
//入库
export function parserPutInType(type) {
	return {
		11: '采购入库',
		12: '归还入库',
		13: '租赁入库',
		14: '生产入库',
		15: '退货入库',
		16: '返修入库',
		0: '暂无信息'
	} [type]
}
//出库
export function parserOutType(type) {
	return {
		21: '销售出库',
		22: '内部领用',
		23: '货品借出',
		24: '货品租赁',
		25: '退货出库',
		26: '报废出库',
	} [type] || '暂无信息'
}

// 领取状态
export function parserReceiveType(type) {
	return {
		1: '待领取',
		2: '已领取',
		3: '待归还',
		4: '已归还',
	} [type] || '暂无信息'
}